package querydsl.domain;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;


/**
 * QWpBlogVersions is a Querydsl query type for WpBlogVersions
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QWpBlogVersions extends com.querydsl.sql.RelationalPathBase<WpBlogVersions> {

    private static final long serialVersionUID = -1737972640;

    public static final QWpBlogVersions wpBlogVersions = new QWpBlogVersions("wp_blog_versions");

    public final NumberPath<Long> blogId = createNumber("blogId", Long.class);

    public final StringPath dbVersion = createString("dbVersion");

    public final DateTimePath<java.sql.Timestamp> lastUpdated = createDateTime("lastUpdated", java.sql.Timestamp.class);

    public final com.querydsl.sql.PrimaryKey<WpBlogVersions> primary = createPrimaryKey(blogId);

    public QWpBlogVersions(String variable) {
        super(WpBlogVersions.class, forVariable(variable), "null", "wp_blog_versions");
        addMetadata();
    }

    public QWpBlogVersions(String variable, String schema, String table) {
        super(WpBlogVersions.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QWpBlogVersions(String variable, String schema) {
        super(WpBlogVersions.class, forVariable(variable), schema, "wp_blog_versions");
        addMetadata();
    }

    public QWpBlogVersions(Path<? extends WpBlogVersions> path) {
        super(path.getType(), path.getMetadata(), "null", "wp_blog_versions");
        addMetadata();
    }

    public QWpBlogVersions(PathMetadata metadata) {
        super(WpBlogVersions.class, metadata, "null", "wp_blog_versions");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(blogId, ColumnMetadata.named("blog_id").withIndex(1).ofType(Types.BIGINT).withSize(19).notNull());
        addMetadata(dbVersion, ColumnMetadata.named("db_version").withIndex(2).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(lastUpdated, ColumnMetadata.named("last_updated").withIndex(3).ofType(Types.TIMESTAMP).withSize(19).notNull());
    }

}

